<template>
  <el-select v-model="value" placeholder="请选择" :clearable="true">
    <el-option
      v-for="item in workexperienceList"
      :key="item.value"
      :label="item.value"
      :value="item.id">
    </el-option>
  </el-select>
</template>

<script>
  import {fetchList} from "../../api/web/dictionary";
  export default {
    watch:{
      value(){
        this.$emit('childByValue',this.value)
      }
    },
    data() {
      return{
        value:'',
        workexperienceList:''
      }
    },
    created() {
      fetchList('workexperience').then(res => {
        this.workexperienceList = res.data
      }).catch(err => {
        console.log(err)
      })
    }
  }
</script>

<style scoped>

</style>
